package cn.edu.zju.gis.disasterBE.sever.controller;

import cn.edu.zju.gis.disasterBE.sever.entity.Image;
import cn.edu.zju.gis.disasterBE.sever.entity.global.MyResponse;
import cn.edu.zju.gis.disasterBE.sever.service.ImageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api("影像信息模块")
@RestController
@RequestMapping("/images")
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class ImageController {
    private final ImageService imageService;

    @ApiOperation("获得影像信息")
    @GetMapping("/GetImages")
    public MyResponse<List<Image>> ImageInfoGet() {
        return imageService.imageGetAll();
    }
}
